package cn.bblocks.common.i18n.demo.params;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
public class ValidParam {

    @NotNull(message = "validate.userform.name.notEmpty")
    private String a;

    @Min(value = 0, message = "validate.userform.age")
    @Max(value = 120, message = "validate.userform.age")
    private Integer age;
}
